import request from '@/router/axios';
import {baseUrl} from '@/config/env';

export const list${entity} = (data) => request({
    url: baseUrl + '/${executeMap.moduleName}/${executeMap.businessName}/page',
    method: 'post',
    data: data
});

export const add${entity} = (data) => request({
    url: baseUrl + '/${executeMap.moduleName}/${executeMap.businessName}',
    method: 'post',
    data: data
});
export const del${entity} = (ids) => request({
    url: baseUrl + '/${executeMap.moduleName}/${executeMap.businessName}/' + ids,
    method: 'delete',
});
export const update${entity} = (data) => request({
    url: baseUrl + '/${executeMap.moduleName}/${executeMap.businessName}',
    method: 'put',
    data: data
});


